// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import './permission'

// vant引入
import Vant from 'vant';
import 'vant/lib/index.css';

window.localStorage.setItem('dpr', Math.floor(window.devicePixelRatio))
// 定义rem基准
import 'amfe-flexible';
import '@/assets/styles/reset.less' // global css

import { getDicts } from "@/api/system/dict/data";
// 字典标签组件
import DictTag from '@/components/DictTag'
// 字典数据组件
import DictData from '@/components/DictData'
Vue.component('DictTag', DictTag)
Vue.prototype.getDicts = getDicts;
Vue.use(Vant);
DictData.install()

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
